export const redbookFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'gender', label: '性别', type: 'gender' },
    { key: 'link', label: '主页链接' },
    { key: 'city', label: '达人所在城市' },
    { key: 'like', label: '赞与收藏' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'profitSharingRatio', label: '公司分成比例', type: 'ratio' },
    { key: 'talentSharingRatio', label: '达人分成比例', type: 'ratio', restRatio: 'profitSharingRatio' },
    { key: 'dandelionCredit', label: '蒲公英信用等级' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'rebateRatio', label: '返点比例', type: 'ratio' },
    { key: 'summary', label: '简介' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'nextMonthImgReportPrice', label: '次月报备价(图文)', labelCollapse: true, type: 'number' },
    { key: 'nextMonthVideoReportPrice', label: '次月报备价(视频)', labelCollapse: true, type: 'number' },
    { key: 'nextMonthImgNotReportPriceCost', label: '次月非报备图文(成本)', type: 'cost', labelCollapse: true },
    { key: 'nextMonthVideoNotReportPriceCost', label: '次月非报备视频(成本)', type: 'cost', labelCollapse: true }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'isVoiceAnchor', label: '是否口播', type: 'select', option: 'voiceOption' },
    { key: 'isOnCamera', label: '是否露脸', type: 'select', option: 'cameraOption' },
    { key: 'masterFit', label: '达人配合度/性格', labelCollapse: true },
    { key: 'orderRequest', label: '接单诉求' },
    { key: 'recommendRank', label: '推荐优先级', type: 'rank', optional: true },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'addBrand', label: '可免费添加品牌标记组件，评论区组件等', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'retentionAllowed', label: '可永久保留内容', type: 'checkbox', span: 24, appendLabel: '备注', appendLabelType: 'string' }
  ]
}];

export const douyinFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'gender', label: '性别', type: 'gender' },
    { key: 'link', label: '主页链接' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'city', label: '达人所在城市' },
    { key: 'summary', label: '简介' },
    { key: 'profitSharingRatio', label: '公司分成比例', type: 'ratio' },
    { key: 'talentSharingRatio', label: '达人分成比例', type: 'ratio', restRatio: 'profitSharingRatio' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'rebateRatio', label: '返点比例', type: 'ratio' },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'starMapTwenty', label: '星图报价1-20s', labelCollapse: true, type: 'number' },
    { key: 'starMapSixty', label: '星图报价20-60s', labelCollapse: true, type: 'number' },
    { key: 'starMapAboveSixty', label: '星图报价60s+', labelCollapse: true, type: 'number' }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'recommendRank', label: '推荐优先级', type: 'rank', optional: true },
    { key: 'privateDeductionTaxRate', label: '私单扣费税点数', optional: true },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'allowCar', label: '可免费挂车', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'carCommission', label: '对挂车佣金无要求', type: 'checkbox', span: 24, appendLabel: '备注' }
  ]
}];

export const weiboFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'gender', label: '性别', type: 'gender' },
    { key: 'link', label: '主页链接' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'city', label: '达人所在城市' },
    { key: 'summary', label: '简介' },
    { key: 'profitSharingRatio', label: '公司分成比例', type: 'ratio' },
    { key: 'talentSharingRatio', label: '达人分成比例', type: 'ratio', restRatio: 'profitSharingRatio' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'publish', label: '非原创直发', type: 'number' },
    { key: 'forward', label: '非原创转发', type: 'number' },
    { key: 'originalContent', label: '原创图文', type: 'number' },
    { key: 'originalVideo', label: '原创视频', type: 'number' }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'recommendRank', label: '推荐优先级', type: 'rank', span: 12, optional: true },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' }
  ]
}];

export const bilibiliFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'gender', label: '性别', type: 'gender' },
    { key: 'link', label: '主页链接' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'city', label: '达人所在城市' },
    { key: 'summary', label: '简介' },
    { key: 'profitSharingRatio', label: '公司分成比例', type: 'ratio' },
    { key: 'talentSharingRatio', label: '达人分成比例', type: 'ratio', restRatio: 'profitSharingRatio' },
    { key: 'rebateRatio', label: '返点比例', type: 'ratio' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'customVideo', label: '定制视频报价', type: 'number' },
    { key: 'implantationVideo', label: '植入视频报价', type: 'number' },
    { key: 'publishTrends', label: '直发动态', type: 'number' },
    { key: 'forwardTrends', label: '转发动态', type: 'number' }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'recommendRank', label: '推荐优先级', type: 'rank', span: 12, optional: true },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' }
  ]
}];

export const kuaishouFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'gender', label: '性别', type: 'gender' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'rebateRatio', label: '返点比例', type: 'ratio' },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'shortVideoPrice', label: '短视频报价(不含平台费)', type: 'number', indentLabel: true }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'isVoiceAnchor', label: '是否口播', type: 'select', option: 'voiceOption' },
    { key: 'isOnCamera', label: '是否露脸', type: 'select', option: 'cameraOption' },
    { key: 'masterFit', label: '达人配合度/性格', labelCollapse: true },
    { key: 'orderRequest', label: '接单诉求' },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注', oppositeRequired: true },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'addBrand', label: '可免费添加品牌标记组件，评论区组件等', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'retentionAllowed', label: '可永久保留内容', type: 'checkbox', span: 24, appendLabel: '备注', appendLabelType: 'string' }
  ]
}];

export const weixinFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'wechatNumber', label: '微信号' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'summary', label: '简介' },
    { key: 'rebateRatio', label: '返点比例', type: 'ratio' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'audience', label: '受众人群' },
    { key: 'averageReading', label: '日常文章头条平均阅读量', indentLabel: true },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'contributionPrice', label: '头条供稿发布价', type: 'number' },
    { key: 'originaPrice', label: '头条原创发布价', type: 'number' },
    { key: 'secContributionPrice', label: '次条供稿发布价', type: 'number' },
    { key: 'secOriginaPrice', label: '次条原创发布价', type: 'number' }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'isVoiceAnchor', label: '是否口播', type: 'select', option: 'voiceOption' },
    { key: 'isOnCamera', label: '是否露脸', type: 'select', option: 'cameraOption' },
    { key: 'masterFit', label: '达人配合度/性格', labelCollapse: true },
    { key: 'orderRequest', label: '接单诉求' },
    { key: 'mutualSelection', label: '是否开通互选', type: 'select', option: 'cameraOption' },
    { key: 'advertisingCase', label: '广告案例' },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注', oppositeRequired: true },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'addBrand', label: '可免费添加品牌标记组件，评论区组件等', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'retentionAllowed', label: '可永久保留内容', type: 'checkbox', span: 24, appendLabel: '备注', appendLabelType: 'string' }
  ]
}];

export const weixinVideoFields = [{
  key: 'accountsInfo',
  name: '账号信息',
  type: 'title',
  children: [
    { key: 'platform', label: '平台', type: 'platform' },
    { key: 'account', label: '账号', type: 'link' },
    { key: 'accountId', label: '账号ID' },
    { key: 'fans', label: '粉丝量', type: 'number' },
    { key: 'cooperationOption', label: '合作方式', type: 'cooperationStatusFilter' },
    { key: 'rebateRatio', label: '返点比例', type: 'ratio' },
    { key: 'agentName', label: '现维护经纪人', type: 'mulUser' },
    { key: 'wechatInfluence', label: '微信生态内影响力' },
    { key: 'otherInfluence', label: '外站影响力' },
    { key: 'journalNode', label: '上刊节点', type: 'journalNodeFilter' },
    { key: 'publicationMonth', label: '上刊月份', type: 'time', format: 'YYYY/MM' },
    { key: 'tagRemark', label: '内容标签' },
    { key: 'tag', label: '标签', type: 'tag', span: 24 }
  ]
}, {
  key: 'journalInfo',
  name: '上刊价格',
  type: 'title',
  children: [
    { key: 'noLinkVideoPrice', label: '直发视频报价(不含链接)', type: 'number', indentLabel: true },
    { key: 'linkVideoPrice', label: '直发视频报价(含链接)', type: 'number' },
    { key: 'dailyLinkPrice', label: '直发链接报价(视频为博主日常内容)', type: 'number', indentLabel: true }
  ]
}, {
  key: 'moreJournalInfo',
  name: '更多上刊信息',
  type: 'title',
  children: [
    { key: 'isVoiceAnchor', label: '是否口播', type: 'select', option: 'voiceOption' },
    { key: 'isOnCamera', label: '是否露脸', type: 'select', option: 'cameraOption' },
    { key: 'masterFit', label: '达人配合度/性格', labelCollapse: true },
    { key: 'orderRequest', label: '接单诉求' },
    { key: 'originalVideo', label: '原创视频需求' },
    { key: 'brandAndAward', label: '合作品牌&获奖经历' },
    { key: 'freeAuth', label: '可全平台免费授权6个月信息流/电商投放以及二次剪辑', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'hasShopPrice', label: '可免费同城探店', type: 'checkbox', span: 24, appendLabel: '备注', oppositeRequired: true },
    { key: 'otherFreePlatform', label: '可免费同步其他平台', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'addBrand', label: '可免费添加品牌标记组件，评论区组件等', type: 'checkbox', span: 24, appendLabel: '备注' },
    { key: 'retentionAllowed', label: '可永久保留内容', type: 'checkbox', span: 24, appendLabel: '备注', appendLabelType: 'string' }
  ]
}];

export function getFields(id) {
  // 平台，1:微信 2: 微博 3:小红书 4.抖音 5:更多  6:直播 7:B站
  const map = {
    3: redbookFields,
    4: douyinFields,
    2: weiboFields,
    7: bilibiliFields
  };
  return map[id];
}

